package com.luyuan.gallery.param;

import java.io.Serializable;

/**
 * 评论VO对象（用于视图展示）
 * 
 * @author luyuan
 * @date 2025-11-07
 */
public class CommentParam implements Serializable {

    /** 主键ID */
    private Long id;

    /** 评论目标id */
    private String targetId;

    /** 评论人id */
    private Long userId;

    /** 所属评论id，主评论为null */
    private Long parentId;

    /** 根评论id，主评论为null */
    private Long rootId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getRootId() {
        return rootId;
    }

    public void setRootId(Long rootId) {
        this.rootId = rootId;
    }

    @Override
    public String toString() {
        return "CommentParam [id=" + id + ", targetId=" + targetId + ", userId=" + userId + ", parentId=" + parentId
                + ", rootId=" + rootId + "]";
    }

}
